import Navbar from "@/components/Navbar";
import { Layout } from "antd";
import React, { PropsWithChildren } from "react";

const { Content } = Layout;

const App: React.FC<PropsWithChildren> = ({ children }) => {
  return (
    <Layout hasSider>
      <Navbar />
      <Layout>
        <Content style={{ margin: "24px 16px 0", overflow: "initial" }}>
          <div className="bg-white p-[24px]">{children}</div>
        </Content>
      </Layout>
    </Layout>
  );
};

export default App;
